package clazz.abs.abs_factory.factory;

import clazz.abs.abs_factory.computer.Computer;
import clazz.abs.abs_factory.phone.HuaweiPhone;
import clazz.abs.abs_factory.phone.Phone;
import clazz.abs.abs_factory.phone.VivoPhone;

public abstract class PhoneFactory extends Factory{
    @Override
    public Phone makePhone(String type){
        if("huawei".equals(type)){
            return new HuaweiPhone();
        }else if("vivo".equals(type)){
            return new VivoPhone();
        }
       return null;
    }

    @Override
    public Computer makeComputer(String type){
        return null;
    }
}
